package com.jason.lucene.example.index;

import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.index.MergePolicy;
import org.apache.lucene.store.FSDirectory;
import org.junit.Test;

import java.nio.file.Paths;

/**
 * @author he peng
 * @create 2017/12/4 9:55
 * @see
 */
public class IndexTuningTest {

    @Test
    public void fsDirectory() throws Exception {
        FSDirectory dir = FSDirectory.open(Paths.get("C://lucene/index"));
        IndexWriterConfig conf = new IndexWriterConfig(new StandardAnalyzer());
        IndexWriter indexWriter = new IndexWriter(dir, conf);
        // TODO lucene 7.1.0 版本改动
        System.out.println();
    }
}
